package com.mall.core;

import java.util.ArrayList;


public interface InventoryController {

public void addItemtoInventory(Item item,int storeownerid);// Adds an Item to the inventory by increasing the quantity count of the item
public void addItemstoInventory(ArrayList<Item> item,int storeownerid);// Adds a list of Items to the inventory by increasing the quantity count of the item
public void removeItem(Item item,int storeownerid);//Removes the item specified from the inventory.
public void removeItem(int itemid,int storeownerid);//Removes the item from the list by Specifying an item id.
public int countInventoryItems(int storeownerid);// Counts an Item in the Inventory by returning the item quantity
public Item getInventoryItems(int storeownerid,Item item);//Retrieves a list of the Inventory Items by by Specifying the list of the items to retrieve. Reduces the count of the item in the inventory
public void createInventory(int storeid, int storeowner);// Create a new Inventory for a store. By specifying the id of the store
public int getInventoryOwnerId(Inventory inventory);// Returns the id of the Store owner who owns the inventory
public boolean setInventoryOwnerId(int ownerid);// sets the id of the Store owner who owns the inventory
public int getStoreOfInventory(Inventory inventory);//Get the store id of the inventory
public boolean setStoreIdOfInventory(Inventory inventory, int storeid);//Get the store id of the inventory
public void updateInventoryItem(Item itemtoupdate, Item updateditem,int storeownerid);//Update an item in the inventory by Specifying the item to be updated and the updated item.
}
